package com.swp.oa.sys.dao;

import java.util.List;

import com.swp.oa.sys.pojo.Role;
import com.swp.oa.sys.pojo.RoleAuth;
import com.swp.oa.sys.pojo.RoleAuthKey;


public interface IRoleAuthDao {
    int deleteByPrimaryKey(RoleAuthKey key);
    
    int deleteByRoleId(String roleid);
    
    int deleteByAuthId(String authid);

    int insert(RoleAuth record);

    int insertSelective(RoleAuth record);

    RoleAuth selectByPrimaryKey(RoleAuthKey key);

    int updateByPrimaryKeySelective(RoleAuth record);

    int updateByPrimaryKey(RoleAuth record);
    
    Role selectAuthsByRoleId(String roleid);
    
    List<RoleAuth> selectByAuthId(String authId);
}